package com.numberone.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzc
 * @since 2019-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ly_resources")
public class Resources implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("parentId")
    private Integer parentId;

    @TableField("resKey")
    private String resKey;

    @TableField("type")
    private String type;

    @TableField("resUrl")
    private String resUrl;

    @TableField("level")
    private Integer level;

    @TableField("icon")
    private String icon;

    @TableField("ishide")
    private Integer ishide;

    @TableField("description")
    private String description;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public Resources setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Resources setName(String name) {
        this.name = name;
        return this;
    }

    public Integer getParentId() {
        return parentId;
    }

    public Resources setParentId(Integer parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getResKey() {
        return resKey;
    }

    public Resources setResKey(String resKey) {
        this.resKey = resKey;
        return this;
    }

    public String getType() {
        return type;
    }

    public Resources setType(String type) {
        this.type = type;
        return this;
    }

    public String getResUrl() {
        return resUrl;
    }

    public Resources setResUrl(String resUrl) {
        this.resUrl = resUrl;
        return this;
    }

    public Integer getLevel() {
        return level;
    }

    public Resources setLevel(Integer level) {
        this.level = level;
        return this;
    }

    public String getIcon() {
        return icon;
    }

    public Resources setIcon(String icon) {
        this.icon = icon;
        return this;
    }

    public Integer getIshide() {
        return ishide;
    }

    public Resources setIshide(Integer ishide) {
        this.ishide = ishide;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public Resources setDescription(String description) {
        this.description = description;
        return this;
    }
}
